package com.ssm.Dao;

import com.ssm.Utils.DBCPUtils;

public class changepasswordDao {

    public boolean change(String username,String newpassword){
        String sql="update user set password=? where name=?";
        Object[] objects={newpassword,username};

        boolean b = DBCPUtils.executeUpdate(sql, objects);
        return b;
    }
}
